package com.chuanke.ckfamily.service.face;

import com.chuanke.ckfamily.service.exception.CFException;

import javax.servlet.http.HttpServletRequest;

public interface FaceService {
    /**
     * 用户活跃
     * @param uid id
     * @param shareSize 分享次数
     * @throws CFException 参数异常
     */
    void userActivity(Long uid, Long shareSize) throws CFException;

    /**
     * 用户更新
     * @param uid id
     */
    void userUpdate(Long uid) throws Exception;

    /**
     *  用户注册
     * @param uid 用户id、
     * @param elect_id 上级id
     */
    void userRegist(Long uid, Long elect_id) throws Exception;

    /**
     * RSA解密验签
     * @param request 请求
     * @param sign sign密文
     */
    void checkSign(HttpServletRequest request, String sign) throws Exception;

    /**
     * 更新数据库所有用户 数据量很大，慎用
     */
    void updateAllUser();
}
